package com.jushu.storbox.entities;

import java.io.Serializable;

public class LinkEntity implements Serializable{

	private static final long serialVersionUID = 1L;
	
	private boolean isShareStruts;
	private String sharedUserId;
	private String sharedUserType;
	private String sharedUserName;

	private String sharedUserLoginName;

	private String sharedDepartment;
	private String iNodeId;

	private String name;

	private String sharedUserMail;

	private Long modifiedAt;

	public boolean isShareStruts() {
		return isShareStruts;
	}

	public void setShareStruts(boolean isShareStruts) {
		this.isShareStruts = isShareStruts;
	}

	public String getSharedUserId() {
		return sharedUserId;
	}

	public void setSharedUserId(String sharedUserId) {
		this.sharedUserId = sharedUserId;
	}

	public String getSharedUserName() {
		return sharedUserName;
	}

	public void setSharedUserName(String sharedUserName) {
		this.sharedUserName = sharedUserName;
	}

	public String getSharedUserLoginName() {
		return sharedUserLoginName;
	}

	public void setSharedUserLoginName(String sharedUserLoginName) {
		this.sharedUserLoginName = sharedUserLoginName;
	}

	public String getSharedDepartment() {
		return sharedDepartment;
	}

	public void setSharedDepartment(String sharedDepartment) {
		this.sharedDepartment = sharedDepartment;
	}

	public String getiNodeId() {
		return iNodeId;
	}

	public void setiNodeId(String iNodeId) {
		this.iNodeId = iNodeId;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSharedUserMail() {
		return sharedUserMail;
	}

	public void setSharedUserMail(String sharedUserMail) {
		this.sharedUserMail = sharedUserMail;
	}

	public Long getModifiedAt() {
		return modifiedAt;
	}

	public void setModifiedAt(Long modifiedAt) {
		this.modifiedAt = modifiedAt;
	}

	public String getSharedUserType() {
		return sharedUserType;
	}

	public void setSharedUserType(String sharedUserType) {
		this.sharedUserType = sharedUserType;
	}

	
	public void setiNodeId(Long nodeId) {
		if(nodeId == null) {
			this.iNodeId = "0";
		} else {
			this.iNodeId = String.valueOf(nodeId);
		}
	}

	public void setSharedUserId(Long sharedUserId) {
		if(sharedUserId == null) {
			this.sharedUserId = "0";
		} else {
			this.sharedUserId = String.valueOf(sharedUserId);
		}
	}
}
